package com.ced.helloworld;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

public class HelloWorld extends Activity {
	public void onCreate(Bundle savedInstanceState) 
    {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
	    setContentView(R.layout.main);
		
	    Button button = (Button) findViewById(R.id.button);
	
	    button.setOnClickListener(new View.OnClickListener() 
	    {	    	
	    	public void onClick(View v)
	    	{
	    		Context context = getApplicationContext();
	    		CharSequence text = "Hallo Wereld!";
	    		int duration = Toast.LENGTH_LONG;
	    		
	    		Toast toast = Toast.makeText(context, text, duration);
	    		toast.show();
	    	}
	    });
    }
}